package cn.xmkeshe.controller;

import cn.xmkeshe.back.IRoleServiceBack;
import cn.xmkeshe.model.Role;
import cn.xmkeshe.utils.Log;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class RoleController {

  @Resource
  private IRoleServiceBack iRoleServiceBack;

  @RequestMapping("/pages/back/role/list")
  @ResponseBody
  @Log(operationName = "系统查询角色信息",operationType = "系统")
  public List<Role> list(){
    return iRoleServiceBack.list();
  }
}
